.class final Lcom/melesta/engine/EngineActivity$11;
.super Ljava/lang/Object;
.source "EngineActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/engine/EngineActivity;->postPromoCode(Lcom/melesta/payment/PaymentTransaction;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$promocode:Ljava/lang/String;

.field final synthetic val$pt:Lcom/melesta/payment/PaymentTransaction;


# direct methods
.method constructor <init>(Lcom/melesta/payment/PaymentTransaction;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1625
    iput-object p1, p0, Lcom/melesta/engine/EngineActivity$11;->val$pt:Lcom/melesta/payment/PaymentTransaction;

    iput-object p2, p0, Lcom/melesta/engine/EngineActivity$11;->val$promocode:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 1629
    :try_start_0
    invoke-static {}, Lcom/melesta/engine/EngineActivity;->getInstance()Lcom/melesta/engine/EngineActivity;

    move-result-object v1

    .line 1630
    .local v1, ea:Lcom/melesta/engine/EngineActivity;
    #calls: Lcom/melesta/engine/EngineActivity;->getUserEmail()Ljava/lang/String;
    invoke-static {v1}, Lcom/melesta/engine/EngineActivity;->access$600(Lcom/melesta/engine/EngineActivity;)Ljava/lang/String;

    move-result-object v2

    .line 1632
    .local v2, gmail:Ljava/lang/String;
    iget-object v3, p0, Lcom/melesta/engine/EngineActivity$11;->val$pt:Lcom/melesta/payment/PaymentTransaction;

    iget-object v3, v3, Lcom/melesta/payment/PaymentTransaction;->paymentId:Ljava/lang/String;

    iget-object v4, p0, Lcom/melesta/engine/EngineActivity$11;->val$promocode:Ljava/lang/String;

    #calls: Lcom/melesta/engine/EngineActivity;->postPromocodeRequest(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    invoke-static {v1, v3, v2, v4}, Lcom/melesta/engine/EngineActivity;->access$700(Lcom/melesta/engine/EngineActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1636
    .end local v1           #ea:Lcom/melesta/engine/EngineActivity;
    .end local v2           #gmail:Ljava/lang/String;
    :goto_0
    return-void

    .line 1633
    :catch_0
    move-exception v0

    .line 1634
    .local v0, e:Ljava/lang/Exception;
    const-string v3, "sendPromo"

    invoke-static {v3, v0}, Lcom/melesta/engine/Error;->processException(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method
